﻿Public Class TaskPane

    Public Event MakePivot As EventHandler
    Public Event MakeTable As EventHandler
    Public Event SaveAsUnique As EventHandler
    Public Event CopyScript As EventHandler
    Public Event SaveAsCsv As EventHandler
    Public Event ForgetSqlServerName As EventHandler

    Private Sub MakePivotButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MakePivotButton.Click
        RaiseEvent MakePivot(sqlCommandText.Text, Nothing)
    End Sub

    Private Sub MakeTableButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MakeTableButton.Click
        RaiseEvent MakeTable(sqlCommandText.Text, Nothing)
    End Sub

    Private Sub SaveFileAsUniqueButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SaveFileAsUniqueButton.Click
        RaiseEvent SaveAsUnique(Nothing, Nothing)
    End Sub

    Private Sub CopyScriptButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CopyScriptButton.Click
        RaiseEvent CopyScript(Nothing, Nothing)
    End Sub

    Private Sub SaveAsCsvButton_Click(sender As Object, e As EventArgs) Handles SaveAsCsvButton.Click
        RaiseEvent SaveAsCsv(Nothing, Nothing)
    End Sub

    Private Sub ForgetSqlServerNameButton_Click(sender As Object, e As EventArgs) Handles ForgetSqlServerNameButton.Click
        RaiseEvent ForgetSqlServerName(Nothing, Nothing)
    End Sub
End Class
